package hng.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class ProductCommentDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论id
     */

    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 商品id
     */

    private Integer productId;

    /**
     * 订单id
     */

    private Integer orderId;

    /**
     * 评论内容
     */

    private String content;
    /**
     * 评分，范围1-5
     */

    private Integer rating;

    /**
     * 销量
     */
    @JsonProperty("productNum")

    private Integer buyNum;
    /**
     * 商品规格
     */

    @JsonProperty("productSpec")
    private String spec;

}
